package domoticus;

import java.text.SimpleDateFormat;

 

public abstract class Sensor {
	
	
	private String manufacturer;
	private SimpleDateFormat installationHour;
	private Integer warranty = 2;
	static EnumType  sensorType;
	
	
	
	 
	
	abstract public  String getCurrentValue(String userName,Integer feedId);
	
	abstract public Boolean getState();
	
	
	public static EnumType getEnum(){
            
        return sensorType;
        
        }
	
        public String getManufacturer(){
		return manufacturer;
	}
	
	public SimpleDateFormat getInstallationHour(){
		return installationHour;
	}
	
	public Integer getWarranty(){
		return warranty;
	}
	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public void setInstallationHour(SimpleDateFormat installationHour) {
		this.installationHour = installationHour;
	}

	public void setWarranty(Integer warranty) {
		this.warranty = warranty;
	}

}
